package com.bootdo.clouddo.service.file;

import com.qiniu.common.QiniuException;
import com.qiniu.storage.model.FileInfo;

public interface IFileService {

	String getUpToken(String bucket, long expireSeconds);

	String getUrl(String key, String domain, long expireSeconds);
	
	FileInfo getFileInfo(String key, String bucket) throws QiniuException;
	
	void move(String fromBucket, String toBucket, String fromKey, String toKey) throws QiniuException;
	
	void copy(String fromBucket, String toBucket, String fromKey, String toKey) throws QiniuException;
	
	void delete(String key, String bucket) throws QiniuException;

}
